import { getImageUrl } from "../utils";

interface AvatarProps {
  person: {
    name: string;
    imageId: string;
  };
  size: number;
}
function Avatar({ person, size }: AvatarProps) {
  return <img className="avatar" src={getImageUrl()} alt={person.name} width={size} height={size} />;
}

export default Avatar;
